package com.xiaoq.matrix.activity.repository;

import java.util.List;

import com.xiaoq.matrix.activity.entity.ActivityEntity;
import com.xiaoq.vo.PagingVo;

public interface IActivityRepository {
	
	public boolean addActivity(ActivityEntity activity);
	
	public boolean delActivity(String id);
	
	public boolean updateActivityStatus(String id);
	
	/**
	 * 根据activityId  查询活动详情
	 * @param id
	 * @return
	 */
	public ActivityEntity findActivity(String id);
	
	
	/**
	 * B端活动举办者根据id号查询自己维护的活动
	 * @param orgnizerId
	 * @param title
	 * @param pubStart
	 * @param pubEnd
	 * @param pvo
	 * @return
	 */
	public List<ActivityEntity> findActivityListByOrgnizer(String orgnizerId,String title,Long pubStart,Long pubEnd,String authStatus,PagingVo pvo);
	
	/**
	 * 按城市给c端用户以分页的方式展示给用户活动详情
	 * @param cityCode
	 * @param pvo
	 * @return
	 */
	public List<ActivityEntity> findActivityListByCity(String cityCode,PagingVo pvo);
	
	/**
	 * 对活动内容进行修改
	 * @param activity
	 * @return
	 */
	public boolean updateActivity(ActivityEntity activity);
	
	/**
	 * C端活动详情查询接口（C端要审核）
	 * @param id
	 * @return
	 */
	public ActivityEntity findActivity2C(String id);
	
	/**
	 * C端根据城市Code查询活动列表（C端要审核）
	 * @param cityCode
	 * @param pvo
	 * @return
	 */
	public List<ActivityEntity> findActivityListByCity2C(String cityCode,String district,PagingVo pvo);


}
